<?php

/* @var $this \yii\web\View */
/* @var $content string */

use yii\helpers\Html;
use frontend\modules\yii2\widgets\layouts\dockerdoc\assets\DockerDocAsset;
DockerDocAsset::register($this);
?>
<?php $this->beginPage() ?>
<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" href="https://www.yiichina.com/favicon.ico?v=1528501659">

    <?php $this->registerCsrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <?php  $this->head() ?>

</head>

<body>
<?php $this->beginBody() ?>
<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#sidebar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/">
                <img src="/images/logo.png" alt="yii brand">
            </a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-left">
                <li><a href="/">Home</a></li>
                <li><a href="/bootstrap3" class="action">Bootstrap3</a></li>
                <li><a href="/docs">Docs</a></li>
                <li><a href="/docker" class="">Docker Tools</a></li>

            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="/contact">Contact</a></li>
            </ul>
        </div>
    </div>
</nav>

<div class="container-fluid">

    <div class="row">
        <div class="col-sm-3 col-md-2 sidebar" id="sidebar">
            <?= frontend\modules\yii2\widgets\layouts\sidebar\Sidebar::widget([
                "items" => [
                    ["label" => "Overview", "url" => "/yii2/bootstrap3/overview"],
                    ["label" => "Form", "url" => "/yii2/bootstrap3/form", "items" => [
                        ["label" => "Input", "url" => "/yii2/bootstrap3/input"],
                        ["label" => "Textarea", "url" => "/yii2/bootstrap3/textarea"],
                    ]],
                    ["label" => "Button", "url" => "/yii2/bootstrap3/button", "items" => [
                        ["label" => "Group", "url" => "/yii2/bootstrap3/button-group"],
                        ["label" => "Dropdown", "url" => "/yii2/bootstrap3/button-dropdown"],
                    ]],
                    ["label" => "Alert", "url" => "/yii2/bootstrap3/alert"],
                    ["label" => "Carousel", "url" => "/yii2/bootstrap3/carousel"],
                    ["label" => "Dropdown", "url" => "/yii2/bootstrap3/dropdown"],
                    ["label" => "Modal", "url" => "/yii2/bootstrap3/modal"],
                    ["label" => "Nav", "url" => "/yii2/bootstrap3/nav"],
                    //["label" => "NavBar", "url" => "/yii2/bootstrap3/navbar"],
                    ["label" => "Progress", "url" => "/yii2/bootstrap3/progress"],
                    ["label" => "Tabs", "url" => "/yii2/bootstrap3/tabs"],

                ]
            ])?>
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main cms-article">

            <div class="row">
                <div class="col-sm-12 col-md-10">
                    <?= $content ?>
                </div>
                <div class="col-md-2 hidden-xs hidden-sm">
                    <?=\frontend\modules\yii2\widgets\layouts\anchor\Anchor::widget()?>
                </div>
            </div>
            <footer class="footer vertical-container">
                <p><span>浙ICP备2021007911号</span>Powered by @陈致威</p>
            </footer>
        </div>


    </div>
</div>


<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
